<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<% String path = request.getContextPath(); %>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="<%=path%>/static/lib/html5shiv.js"></script>
<script type="text/javascript" src="<%=path%>/static/lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="<%=path%>/static/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/static/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/static/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="<%=path%>/static/static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="<%=path%>/static/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title></title>
<meta name="keywords" content="">
<meta name="description" content="">
</head>
<body>
<div class="page-container">
	<form class="form form-horizontal" id="formEdit" action="<%=path%>/user/userEditSubmit" method="post">
		<c:if test="${type == '01'}">
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">真实姓名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.realname}" placeholder="" id="realname" name="realname">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">学号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.username}" placeholder="" id="username" name="username">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">手机：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.phone}" placeholder="" id="phone" name="phone">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">出生年月：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.birthday}" placeholder="" id="birthday" name="birthday">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">是否团员：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.red}" placeholder="" id="red" name="red">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">性别：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.sex}" placeholder="" id="sex" name="sex">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">邮箱：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${user.email}" placeholder="" id="email" name="email">
					</div>
				</div>
		</c:if>
		<c:if test="${type == '02'}">
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">真实姓名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${admin.realname}" placeholder="" id="realname" name="realname">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">用户名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${admin.username}" placeholder="" id="username" name="username">
					</div>
				</div>
				<div class="row cl">
					<label style="text-align: right;" class="form-label col-xs-4 col-sm-3">手机：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input style="width: 190px;" disabled type="text" style="width: 400px;" class="input-text" value="${admin.phone}" placeholder="" id="phone" name="phone">
					</div>
				</div>
		</c:if>
	</form>
</div>



<!--_footer 作为公共模版分离出去--> 
<script type="text/javascript" src="<%=path%>/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="<%=path%>/static/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="<%=path%>/static/static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="<%=path%>/static/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="<%=path%>/static/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="<%=path%>/static/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="<%=path%>/static/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript">
function save(){
	alert("刷新父级的时候会自动关闭弹层。")
	window.parent.location.reload();
}

</script>
<style>
    label.error{
        position: absolute;
        right: 500px !important;
        top: 5px;
        color: #ef392b;
        font-size: 12px;
    }
</style>
</body>
</html>